<% include("/admin/header.html", {active : 'music'}){} %>
<div style="margin: 10px;">
	<button class="btn btn-primary btn-xs" onclick="window.location.href='${base}/admin/music/save'">
		<i class="icon-edit"></i> 添加音乐
	</button>
</div>
<div>
	<table class="table table-hover table-bordered">
		<thead>
			<tr>
				<th>序号</th>
				<th>曲目名称</th>
				<th>歌手</th>
				<th>所属分类</th>
				<th>喜欢次数</th>
				<th>下载次数</th>
				<th>上传时间</th>
				<th>上传人</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<% for(music in pageMap.results!){%>
			<tr>
				<td>${musicLP.index}</td>
				<td><a href="${base}/admin/music/${music.id!}" title="编辑">${music.song!}</a></td>
				<td>${music.singer!}</td>
				<td>${music.mcat!}</td>
				<td>${music.like_count!}</td>
				<td>${music.download_count!}</td>
				<td>${music.time_zh!}</td>
				<td>${music.nickname!}</td>
				<td>
					<button class="btn btn-info btn-xs" onclick="window.location.href='${base}/admin/music/${music.id!}'">
						<i class="icon-edit"></i> 编辑
					</button>
					<button class="btn btn-danger btn-xs" onclick="$unique.admin.music.del(${music.id!})">
						<i class="icon-edit"></i> 删除
					</button>
				</td>
			</tr>
			<% }%>
		</tbody>
	</table>
	<ul class="pager">
		<li class="previous"><a href="${base}/admin/music?page=${pageMap.prev_page!1}">« 上一页</a></li>
		<li class="active"><a href="${base}/admin/music?page=1">1</a></li>
		<li><a href="${base}/admin/music?page=2">2</a></li>
		<li><a href="${base}/admin/music?page=3">3</a></li>
		<li><a href="${base}/admin/music?page=4">4</a></li>
		<li><a href="${base}/admin/music?page=5">5</a></li>
		<li class="next"><a href="#">下一页 »</a></li>
	</ul>
</div>
<script type="text/javascript" src="${cdn}/assets/uploadify/jquery.uploadify.min.js"></script>
<% include("/admin/footer.html",{jsList:['admin/music.js']}){} %>
